package com.ysxsoft.wdg.adapter.my;


import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ysxsoft.wdg.R;
import com.ysxsoft.wdg.bean.response.QuestionResponse;

public class QuestionAdapter extends BaseQuickAdapter<QuestionResponse.DataBean, BaseViewHolder> {
    public QuestionAdapter(int layoutResId) {
        super(layoutResId);
    }

    public void clear() {
        getData().clear();
        notifyDataSetChanged();
    }

    @Override
    protected void convert(BaseViewHolder helper, QuestionResponse.DataBean item) {
        helper.setText(R.id.tv_name, item.getTitle());
    }
}
